package com.bnz.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;


@Component // 放进spring容器
@ConfigurationProperties(prefix = "my") // 获取配置文件中，前缀为my的信息
@Data
public class ClassConfig {

    private List<String> list;

    public List<String> getList(){
         return list;
     }
}
